<script setup lang="ts">
interface Props {
  calendarValue: Date
}
defineProps<Props>()
</script>

<template>
  <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="8">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>日历</span>
        </div>
      </template>
      <el-calendar v-bind="calendarValue" />
    </el-card>
  </el-col>
</template>

<style scoped lang="scss">
.card-header {
  font-size: 16px;
}
:deep(.el-card__header) {
  padding: 16px 24px !important;
}

:deep(.el-card__body) {
  padding: 0 24px 8px !important;
  height: 500px;
}

:deep(.el-calendar-day) {
  height: 55px;
}
.el-col {
    position: relative;
    max-width: 100%;
    min-height: 1px;
}
.el-col-xs-24 {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
}




@media (min-width: 576px)
{.el-col-sm-24 {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
}}
@media (min-width: 768px)
{.el-col-md-24 {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
}}
@media (min-width: 992px)
{.el-col-lg-24 {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
}}
@media (min-width: 1200px)
{.el-col-xl-8 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
}
}
</style>
